<?php
defined('_JEXEC') or die('Restricted access');

class igUploadHtml5form
{
	function html5formHeadJs()
	{
		return;
	}
	
	function html5formHTML()
	{
		$catid = JRequest::getInt('catid',0);
		
		$configArray =& JComponentHelper::getParams('com_igallery');
		$moderateValue = $configArray->get('moderate_img', 0) == 0 || IG_BACKEND == true ? 0 : 1;
		?>
		<form action="index.php" method="post" name="browserUploaderForm" enctype="multipart/form-data">
		<fieldset class="adminform">
		<legend><?php echo JText::_( 'UPLOAD FILES' ); ?></legend>
		<input name='uploads[]' type="file" multiple onchange="listFiles()"/>
		
		<input type="hidden" name="option" value="com_igallery" />
		<input type="hidden" name="task" value="browserUpload" />
		<input type="hidden" name="controller" value="igphoto" />
		<input type="hidden" name="catid" value="<?php echo $catid; ?>" />
		<input type="hidden" name="moderateMsg" value="<?php echo $moderateValue; ?>" />
		<input type="hidden" name="Itemid" value="<?php echo JRequest::getInt('Itemid'); ?>" />
		
		<br /><br />
		<input type="submit" name="submit" value="<?php echo JText::_( 'UPLOAD' ); ?>" />
		<p><?php echo JText::_( 'HOLD CONTROL SHIFT' ); ?></p>
		</fieldset>
		</form>
		<?php
	}
}